<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta charset="UTF-8">
    <meta name="" content="">
    <title>个人中心-我的订单</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <meta name="copyright" content="">
    <link rel="stylesheet" type="text/css" href="{{__PUBLIC__}}/Home/css/header.css" media="all">
    <link rel="stylesheet" type="text/css" href="{{__PUBLIC__}}/Home/css/pkg-order.css" media="all">

</head>

<!--载入公共模板 头部-->
        {{include file="VIEW_PATH/Common/header.php"}}
 
<div id="body_wrap">
<div class="mu_wrap wrap clearfix">	
<!--========左侧导航开始=======-->
<div class="mu_nav_wrap">

        <!--个人信息开始-->
       {{foreach from="$userData" value="$u"}}
    <div class="mu_nav_info">
        <div class="mu_nav_info_avatar">
            <div class="mu_nav_info_avatar_mk"></div>
            <img src="{{__ROOT__}}/{{$u['avatar']}}" alt="" height="100" width="100">
        </div>
        <p class="mu_nav_info_uname">{{$u['nickname']}}</p>
        <a data-ptp-idx="39" target="_blank" style="width:45px;" class="mu_nav_info_ulot" href="">
        	<span id="vip_level" class="vip_level0" style="float:left;width: 45px; display: inline-block; height: 14px; margin-top: 3px;"></span>
        </a>
	
    </div>
    {{endforeach}}
  <!--个人信息结束-->

    <div class="mu_nav mu_expand">
        <div class="mu_title">我的订单</div>

        <ul class="mu_nav_item" style="display:none;">
            <li class="c">
                <a  href="">全部订单</a>
            </li>
            <li>
                <a  href="">待付款 </a>
            </li>
            <li>
                <a  href="">待收货 
                	<i class="mu_nav_count">2<i class="mu_nav_count_arw"></i></i>
                </a>
            </li>
            <li>
                <a  href="">待评价 </a>
            </li>
            <li>
                <a  href="">退货退款</a>
            </li>
            </ul>
    </div>
    <!--我的钱包-->
    <div class="mu_nav">
        <div class="mu_title"><a  href="{{U('Member/wallet')}}">我的钱包</a></div>
    </div>
 
    <!--地址管理-->
    <div class="mu_nav">
        <div class="mu_title"><a  href="{{U('Member/address')}}">地址管理</a></div>
    </div>
	
	<!--账号设置-->
    <div class="mu_nav pb40">
        <div class="mu_title">帐号设置</div>
	        <ul class="mu_nav_item" style="display: block;">
	            <li><a  href="{{U('Member/accountSettings')}}">账号信息</a></li>
	        </ul>
	         <ul class="mu_nav_item" style="display: block;">
	            <li><a  href="{{U('Member/change')}}">修改密码</a></li>
	        </ul>
    </div>
   
</div>
<!--左侧导航结束-->


<div class="mu_content_wrap">
	<!--订单表头-->
<div class="order-title">
    <ul class="order-title-column clearfix">
        <li class="goods">商品</li>
        <li class="price">单价(元)</li>
        <li class="quantity">数量</li>
        <!--<li class="aftersale">售后</li>-->
        <li class="total">实付款(元)</li>
        <li class="status">交易状态</li>
        <li class="other">操作</li>
    </ul>
</div>
<!--======-->
{{foreach from="$data" value="$v"}}
	<!--订单列表-->
			<!--订单-2-->
        <div class="order-section" >
        	<table class="order-table">
        		<tbody>
        			<!--订单头部信息 订单编号，成交时间，店铺信息-->
        			<tr class="order-table-header">
        				<td colspan="7">
        					<!--订单信息-->
        					<div class="order-info fl">
						        <span class="no">订单编号：<span class="order_num">{{$v['number']}}</span></span>
						        <span class="deal-time">成交时间：{{date('Y-m-d',$v['addtime'])}}</span>
        					</div>
							<!--联系商家-->
                            <a  href="javascript:;" class="mogutalk_btn" > 
                            	<span class="icon icon-contact">联系商家</span>
                            </a>
            			</td>
        			</tr>
        			<!--订单详情-->
                    <tr class="order-table-item last">
            			<td class="goods">
                			<a  class="pic" href="" title="查看宝贝详情" hidefocus="true" target="_blank">
                    				<img src="{{__ROOT__}}/{{$v['pic']}}" alt="查看宝贝详情" width="70">
                			</a>
								<!--商品描述-->
				                <div class="desc">
				                	<!--商品名称和照片-->
				                    <p>
				                        <a  href="" target="_blank">{{$v['gname']}}</a>
				                        <!--订单照片-->
				                          <a  class="snapshot" href="" target="_blank">[交易快照]</a>
				                    </p>
				                    <!--颜色..尺码-->
				                    {{foreach from="$v['spec'][0]" key="$kk" value="$vv"}}
				                    <p>{{$kk}}：{{$vv}}</p>
				                    {{endforeach}}
									
				                </div>
                            </td>
                            <!--商品价格-->
				            <td class="price">
				            	<!--市场价-->
				                <p class="price-old">{{$v['marketprice']}}</p>
				                <!--商城价-->
				                <p>{{$v['shopprice']}}</p>
				            </td>
				            <!--商品数量-->
            				<td class="quantity">{{$v['quantity']}}</td>
            		
							<!--总价格-->
                            <td class="total" rowspan="1">
                    			<ul>
		                        	<li>
			                            <p class="total-price">￥{{$v['subtotalprice']}}</p>
			                            <p>(包邮)</p><p></p>
		                        	</li>
                            	</ul>
                			</td>
                			
                			<td class="status" rowspan="1">
                    			<p class="icon icon-delivery">{{$v['status']}}</p>	
                    			<a class="order-link" target="_blank" href="">订单详情</a>
                                            <div class="delivery">
                            <a  class="order-link delivery-info" href="javascript:;"  >查看物流</a>
	                            <div class="delivery-detail">
	                            	<!--空的-->
	                                <div class="inner">还没有更新物流信息</div>
	                                <!--有物流信息的-->
	                                <!-------------->
				                       <!--<div class="inner">
											<p>快递名：申通快递</p>
											<p>运单号：968452601871</p>
											<ul>
												<li class="newest">
												<p>由【江苏无锡中转部】发往【上海航空部】</p>
												<p>2015-11-21 05:47:47</p>
												</li>
												<li>
												<p>由【江苏常熟公司】发往【江苏无锡中转部】</p>
												<p>2015-11-21 00:02:59</p>
												</li>
												<li>
												<p>【江苏常熟公司】的收件员【陈进3218453012】已收件</p>
												<p>2015-11-20 23:31:09</p>
												</li>
											</ul>
											<a class="delivery-more" target="_blank" href=""  >查看详情</a>
									</div>-->
	                            <!------------>
	                            </div>
                        </div>
                     </td>

		                <td class="other" rowspan="1">
		                        <ul>
		                        	{{if value="$v['status'] eq '未付款'"}}
                    	 <li>
                        	<a  class="order-btn primary order-confirm" href="javascript:;" onclick="if(confirm('确定取消订单吗？？')) location.href='{{U('Order/del',array('oid'=>$v['oid']))}}'">取消订单</a>
                        </li>
                        <li>
                        	<a  class="order-btn primary order-confirm" href="{{U('Member/edit',array('oid'=>$v['oid']))}}" >去付款</a>
                        </li>
                        {{endif}}
                        {{if value="$v['status'] eq '已发货'"}}
	                        <li>
	                        	<a  class="order-btn primary order-confirm" href="javascript:;" >确认收货</a>
	                        </li>
                        {{endif}}
                        {{if value="$v['status'] eq '待发货'"}}
		                       <li>
		                    	<a  class="order-btn primary order-confirm" href="javascript:;" >提醒卖家发货</a>
		                    </li>
                    	{{endif}}
                     {{if value="$v['status'] eq '已完成'"}}
	                    <li>
	                    	<a  class="order-btn primary order-confirm" href="javascript:;" >查看订单</a>
	                    </li>
                        <li>
                        	<a  class="order-btn primary order-confirm" href="javascript:;" >去评价</a>
                        </li>
                      {{endif}}
                    </ul>
		                </td>
                        </tr>
    		</tbody>
		</table>
	</div>
	{{endforeach}}
</div>
  
</div>
</div>
</div>

<!-- 载入公共底部 -->
     {{include file="VIEW_PATH/Common/footer.php"}}
 </body>

</html>